< previous page page_340 next page >

Page 340
You could use an ADO Data Control on the form to access the database. However, for this example, you are going to use the Data Environment connection that you previously defined in this project. To connect the Data Repeater to the Data Environment, set the following properties for the Data Repeater:
8694cbadb9b1ef7075903f6f95fc1db2.gif
DataSource                   deNorthWind
DateMember                   cmdEmployee
Then, click the RepeaterControlName property to display a drop-down list of all controls available on the computer. On the list, click EmpControl.ctlEmp. The selected control will be repeated in the Data Repeater control (see Figure 12.25).
12181-0340a.gif
Figure 12.25.
The Data Repeater will automatically show the custom control
as many times as possible during both design- and runtime.
The last step in the process is to attach the custom controls properties to the record source. Open the Data Repeater Properties dialog, click the RepeaterBindings tab (see Figure 12.26) to set each of the text box and check box properties.

 
< previous page page_340 next page >

If you like this book, buy it!